package com.hz.score.cus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hz.score.cus.model.CusCommLink;
import com.hz.score.cus.model.CusIndLink;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CusIndLinkMapper extends BaseMapper<CusIndLink> {

    @Select({
            "<script>",
            "select *",
            "from cus_ind_link",
            "where biz_typ in",
            "<foreach collection='bizTyps' item='code' open='(' separator=',' close=')'>",
            "#{code}",
            "</foreach>",
            "</script>"
    })
    List<CusIndLink> getAllCusIndLink(@Param("bizTyps") List<String> bizTyps);
}
